//package com.jmdz.fmis.biz.config.notify;
//
//import com.jmdz.fmis.biz.service.notify.AdminNotifyBizService;
//import com.jmdz.fmis.biz.service.notify.MockAdminNotifyBizServiceImpl;
//import com.jmdz.fmis.biz.service.notify.UniNotifyAdminNotifyBizServiceImpl;
//import com.jmdz.fmis.data.properties.FmisAdminNotifyProperties;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
///**
// * Created with IntelliJ IDEA.
// * Description:
// * User: rize
// * Date: 2019/12/27
// * Time: 20:15
// */
//@Configuration
//public class AdminNotifyConfig {
//
//    @Autowired
//    private FmisAdminNotifyProperties fmisAdminNotifyProperties;
//
//    @Bean
//    public AdminNotifyBizService adminNotifyBizService() {
//        if ("mock".equalsIgnoreCase(fmisAdminNotifyProperties.getEnable())) {
//            return new MockAdminNotifyBizServiceImpl();
//        } else if ("uninotify".equalsIgnoreCase(fmisAdminNotifyProperties.getEnable())) {
//            return new UniNotifyAdminNotifyBizServiceImpl();
//        } else {
//            return null;
//        }
//    }
//
//}
